public class Demo2 {

    public String name;
    public int age;
    public String id;




    public Demo2(String p, int i, String s) {


        this.name = p;
        this.age = i;
        this.id = s;
    }

    public Demo2() {

    }
}

class test extends Demo2 {

    public String classroom;

    public test() {
        super();


        System.out.println("test构造方法");
    }
//
//    public test(String p) {
//        this.classroom = p;
//    }
}

class test1 {


    public static void main(String[] args) {

      test t = new test();

    }
}
